<?php
namespace Home\Controller;
use Think\Controller;
/*
 *总后台公共控制器
 */
class HomeController extends Controller {
	/*
	 *初始化
	 */
	public function _initialize(){
		// 获取当前用户ID
        define('SHOPID',is_login());
        if(!SHOPID){
        	$this->redirect('User/login');
        }
	}
}